home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / auror300.zip / AUKBD.AML < prev    next >
Text File  |  1996-07-17  |  20KB  |  492 lines

  1. //--------------------------------------------------------------------
  2. // The Aurora Editor v3.0, Copyright (C) 1993-1996 nuText Systems
  3. //
  4. // KBD.AML
  5. // Aurora Keyboard definitions (included by Main.aml)
  6. //
  7. // If you have made any changes, save this file and select Recompile
  8. // the Editor from the Set menu. Exit and re-enter the editor for
  9. // your changes to take effect.
  10. //--------------------------------------------------------------------
  11.  
  12. //--------------------------------------------------------------------
  13. // Edit and File Manager windows
  14. //--------------------------------------------------------------------
  15.  
  16. object edit_fmgr
  17.  
  18.   // Controls
  19.   function '≡'                                 // close window
  20.     close
  21.   end
  22.  
  23.   // Menu activation
  24.   key  <esc>           gotobar                 // to last menu bar item
  25.   key  <f10>           gotobar                 // to last menu bar item
  26.   key  <alt f10>       gotomenu                // goto last pull-down menu
  27.   key  <f1>            gotomenu "help"         // to help menu
  28.   key  <alt t>         gotobar2                // to last toolbar/drive item
  29.  
  30.   // Scroll
  31.   key  <pgdn>          pagedown                // scroll down
  32.   key  <pgup>          pageup                  // scroll up
  33.   key  <ctrl home>     row (getviewtop)        // to page top
  34.   key  <ctrl end>      row (getviewbot)        // to page bottom
  35.   key  <ctrl pgup>     row 1                   // to file top
  36.   key  <ctrl pgdn>     row (getlines)          // to file bottom
  37.   key  <center>        adjustrow               // center cursor
  38.   key  <ctrl f9>       adjustrow 1             // scroll to page top
  39.   key  <ctrl f10>      adjustrow (getviewrows) // scroll to page bottom
  40.   key  <ctrl up>       rollrow -1              // scroll up one line
  41.   key  <ctrl down>     rollrow  1              // scroll down one line
  42.   key  <ctrl ->        lastpos                 // to last cursor position
  43.  
  44.   // File
  45.   key  <ctrl n>        opennew                 // new edit window
  46.   key  <alt e>         askopen                 // open prompt
  47.   key  <alt z>         openlast                // open last window
  48.   key  <alt ->         filelist                // file list
  49.   key  <alt q>         close                   // close window
  50.   key  <alt x>         closeall                // close all windows
  51.   key  <shift f1>      quickref 'qw'           // quick function reference
  52.   key  <shift f2>      quickref 'fw'           // function reference
  53.  
  54.   // Window
  55.   key  <alt w>         winlist                 // window list
  56.   key  <ctrl z>        maximize                // maximize window
  57.   key  <ctrl a>        nextwindow              // next window
  58.   key  <f12>           prevwindow              // prev window
  59.   key  <shift f3>      tile 'v'                // tile vertical
  60.   key  <shift f4>      tile 'h'                // tile horizontal
  61.   key  <shift f5>      cascade                 // cascade
  62.   key  <ctrl k><q>     close                   // close window
  63.  
  64.   // Search
  65.   key  <ctrl s>        askscan                 // file scan prompt
  66.   key  <ctrl b>        gotomark 't'            // find top of block
  67.   key  <ctrl 6>        cyclebook               // cycle through bookmarks
  68.  
  69.   // Print
  70.   key  <ctrl p>        print                   // print
  71.   key  <alt p>         print 'b'               // print block
  72.  
  73.   // Set
  74.   key  <ctrl f1>       togglemode              // toggle video mode
  75.   key  <alt f2>        recompile               // recompile the editor
  76.  
  77.   // Macro
  78.   key  <ctrl v>        askeval                 // macro command prompt
  79.   key  <alt f9>        askrun                  // Dos command prompt
  80.   key  <alt f8>        askruncap               // Dos capture prompt
  81.   key  <f9>            shell                   // exit to Dos
  82.   key  <shift f12>     pickmacro               // macro picklist
  83.   key  <ctrl f12>      runmacro2 "maclist"     // macro menu
  84.  
  85.   // Other
  86.   key  <alt f5>        opencfg "tran"          // edit translation table
  87.  
  88.   // undefined or unnamed keys
  89.   key <otherkey> (keycode)
  90.     say (geteventname (keycode)) + " not defined"
  91.   end
  92.  
  93.  
  94. //--------------------------------------------------------------------
  95. // Prompts and Edit windows
  96. //--------------------------------------------------------------------
  97.  
  98. object prompt
  99.  
  100.   // Controls
  101.   function '≡'
  102.     close                                      // close window
  103.   end
  104.  
  105.   function '*'
  106.     enter                                      // simulate <enter>
  107.   end                                          //  (2-line box only)
  108.  
  109.   // Cursor
  110.   key  <left>          left                    // move cursor left
  111.   key  <right>         right                   // move cursor right
  112.   key  <home>          col 1                   // to column one
  113.   key  <end>           col  getlinelen + 1     // to end of line
  114.  
  115.   // Cursor + CUA-marking
  116.   key  <shift left>    left
  117.                        smark
  118.   key  <shift right>   right
  119.                        smark
  120.   key  <shift home>    col 1
  121.                        smark
  122.   key  <shift end>     col getlinelen + 1
  123.                        smark
  124.  
  125.   // Scroll
  126.   key  <f7>            rollcol -(getviewcols - 1)   // page left
  127.   key  <f8>            rollcol   getviewcols - 1    // page right
  128.  
  129.   // Editing
  130.   key  <ins>           setting 'I' TOGGLE      // toggle insert mode
  131.   key  <del>           delchar                 // delete character
  132.  
  133.   key  <backspace>     backsp                  // delete left character
  134.   key  <f6>            delchar MAX_COL         // erase to end of line
  135.   key  <alt f6>                                // erase to beginning of line
  136.     ovltext '':getcol 1
  137.   end
  138.   key  <ctrl [>        literal                 // enter literal character
  139.   key  <alt =>         asciilist               // display ascii chart
  140.  
  141.   // Block
  142.   key  <alt a>         markchar                // mark character
  143.   key  <alt b>         markcolumn              // mark column
  144.   key  <alt 1>         markword                // mark word
  145.   key  <alt 2>         markeol                 // mark to end of line
  146.   key  <alt u>         destroymark             // unmark
  147.  
  148.   // copy block to prompt
  149.   key  <alt c>
  150.     instext (getmarktext)
  151.     col  getlinelen + 1
  152.   end
  153.  
  154.   // paste from clipboard to prompt
  155.   key  <grey*>
  156.     oldmark = usemark _ClipName
  157.     instext (getmarktext)
  158.     usemark oldmark
  159.     col  getlinelen + 1
  160.   end
  161.   key  <shift ins>     call <grey*>
  162.  
  163.   // copy from prompt to clipboard
  164.   key  <grey+>         copy
  165.   key  <ctrl ins>      copy
  166.  
  167.   // Prompt history
  168.   key  <up>            prevhist                // retrieve prev prompt
  169.   key  <down>          nexthist                // retrieve next prompt
  170.   key  <pgup>          askhistory              // history popup menu
  171.   key  <pgdn>          askhistory              // history popup menu
  172.  
  173.   // Exit
  174.   key  <esc>           close                   // quit prompt
  175.   key  <alt q>         close                   // quit prompt
  176.  
  177.   // non-function keys
  178.   key  <char> (character)                      // typeable keys
  179.     write character
  180.   end
  181.  
  182.   // filename completion
  183.   key  <ctrl tab>      askcomplete             // filename completion
  184.   key  <tab>           askcomplete             // filename completion
  185.  
  186.  
  187. //--------------------------------------------------------------------
  188. // Edit windows
  189. //--------------------------------------------------------------------
  190.  
  191. object edit
  192.  
  193.   // Controls
  194.   function '≡'
  195.     close                                      // close window
  196.   end
  197.  
  198.   // Menu
  199.   key  <esc>           gotobar                 // to last menu bar item
  200.  
  201.   // Cursor
  202.   key  <up>            up                      // move cursor up
  203.   key  <down>          down                    // move cursor down
  204.  
  205.   // Cursor + CUA-marking
  206.   key  <shift up>      up
  207.                        smark
  208.   key  <shift down>    down
  209.                        smark
  210.  
  211.   key  <enter>         enter                   // enter key
  212.   key  <greyenter>     enter                   // keypad enter key
  213.   key  <del>